<ion-header>
    <ion-navbar>
        <ion-title>
            扫描条形码
        </ion-title>
    </ion-navbar>
</ion-header>

<ion-content padding>
    <div *ngIf="barCode.length>0" style="height:85%">
        <button ion-item *ngFor="let item of barCode">
            {{ item }}
        </button>
    </div>
    <button ion-button block (click)="usrBarcodeScanner()">扫描条形码</button>
</ion-content>